<?php


namespace api\web\model;


use think\Model;

class IndexModel extends Model
{
    protected $name = 'index';


    public function child(){
        return $this->hasMany(IndexModel::class,'parent_id','id');
    }
}